FROM node:18 AS builder

WORKDIR /app

COPY . .

RUN npm config set registry http://registry.npmmirror.com

RUN npm i

RUN npm run build

EXPOSE 3000

CMD ["npm", "start"]
